package com.insis.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.insis.dao.TrainMapper;
import com.insis.entity.TrainEntity;
import com.insis.service.TrainService;

@Service("trainService")
public class TrainServiceImpl implements TrainService {

	@Autowired
	private TrainMapper trainMapper;
	
	public List<String> getAllTrainName() {
		return trainMapper.selectAllTrainName();
	}
	
	public List<TrainEntity> getInfoBytrainName(String carName) {
		return trainMapper.selectInfoBytrainName(carName);
	}
}
